#!/bin/sh
#
# This script will compile the lab5 binaries.  Invoked without an
# argument, it will compile the basic lab5 program; with an argument,
# it will compile the trackball version.
#

if [ $# -gt 0 ]
then
	target="lab5track"
	srcfiles="lab5-trackball.cpp TrackBall.cpp"
else
	target="lab5"
	srcfiles="lab5.cpp"
fi

# echo the compilation command

set -x

g++ -g -o $target -I/home/fac/wrc/SOIL/include $srcfiles \
	InitTextures.cpp ShaderSetup.cpp MatrixInvert.cpp \
	-framework GLUT -framework OpenGL -framework CoreFoundation \
	-L/home/fac/wrc/SOIL/lib  -lSOIL
